{% extends "core/base_core.html" %}
{% block title %} - 提交新话题{% endblock %}
{% block extra_head %}
      <script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}javascripts/tiny_mce/jquery.tinymce.js"></script>
      <script type="text/javascript" charset="utf-8">
      $().ready(function() {
         $('textarea.with_tinymce').tinymce({
            script_url : '{{ MEDIA_URL }}javascripts/tiny_mce/tiny_mce.js',
            language : 'zh',
            theme : "advanced",
            theme_advanced_toolbar_location : "top",
            theme_advanced_buttons1 : "bold,italic,strikethrough,|,justifyleft,justifycenter,justifyright,|,formatselect,fontsizeselect,bullist,numlist,|,link,unlink,image,code",
            theme_advanced_buttons2 : "",
            theme_advanced_buttons3 : "",
         });
      });
      </script>
{% endblock %}

{% block content %}
      <div class="container_16">
        <div class="left">
            <h1>话题详情：</h1><a href="/topic">返回话题列表</a>
            <div class="lbox">
                {% if save_success %}
                    感谢您的话题提交，系统会根据接下来活动场次的情况以及用户的投票来安排您的话题，期待您精彩的演讲
                    {% else %}
                请首先了解OpenParty对于话题的一些要求、时间、等等
                <form action="{% url submit_new_topic %}" method="POST">
                {% csrf_token %}
                <table>
                    <tr>
                        <td>{{form.name.label}}:{{form.name}}</td>
                    </tr>
                    <tr>
                        <td>{{form.description.label}}</td>
                    </tr>
                    <tr>
                        <td>{{form.description}}</td>
                    </tr>
                    <tr>
                        <td>{{form.content.label}}</td>
                    </tr>
                    <tr>
                        <td>{{form.content}}</td>
                    </tr>
                    <tr>
                        <td>申请在以下活动进行话题宣讲:(需管理员审核)</td>
                    </tr>
                    <tr>
                        <td>{{form.in_event}}</td>
                    </tr>
                </table>
                <input type="submit" value="提交">
                </form>
                {% endif %}
            </div>
         </div>
       </div>
{% endblock %}
